package demo;

//除法
public class OperationDiv extends Operation {
    @Override
    protected double getResult() {
        if (getValue2() == 0) throw new RuntimeException("分母不能为0！");
        return getValue1() / getValue2();
    }
}
